package com.cxcy.swustlearner.service.Impl;

import com.cxcy.swustlearner.mapper.HomeworkMapper;
import com.cxcy.swustlearner.pojo.HomeWork;
import com.cxcy.swustlearner.service.HomeWorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeWorkServiceImpl implements HomeWorkService {
    @Autowired
    private HomeworkMapper homeWorkMapper;
    @Override
    public List<HomeWork> getHomeWork() {
        return homeWorkMapper.getHomeWork();
    }

    @Override
    public void insertHomeWork(HomeWork homeWork) {
        homeWorkMapper.insertHomeWork(homeWork);
    }

    @Override
    public void updateHomeWork(HomeWork homeWork) {

    }
}
